﻿@model SimpleScrum.Areas.Admin.Models.AdminViewModel

@{
    ViewBag.Title = "Admin Control Panel";
}
<div class="breadcrumbs" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li>
                        <i class="icon-home home-icon"></i>
                        <a href="@Url.Action("Index","ControlPanel")">Home</a>
                        <span class="divider">
                            <i class="icon-angle-right arrow-icon"></i>
                        </span>
                    </li>
                    <li class="active">Control Panel</li>
                </ul>
                <!--.breadcrumb-->
                <div class="nav-search" id="nav-search">
                    <form class="form-search">
                        <span class="input-icon">
                            <input type="text" plscrumholder="Search ..." class="input-small nav-search-input" id="nav-search-input" autocomplete="off" />
                            <i class="icon-search nav-search-icon"></i>
                        </span>
                    </form>
                </div>
            </div>
<div class="page-content">
    <div class="row-fluid">
        <div class="span10 offset1">
            <hgroup>
                <h1 class="green">@ViewBag.Title</h1>
                @Html.ActionLink("Show Role","ShowRoles", "ControlPanel", new{@Class="btn btn-info"})
            </hgroup>
        </div>
    </div>
    <div class="row-fluid">
        <div class="span10 offset1">
            <h2>
                Manage Users and Roles</h2>
            <p>
                An easy-to-use management system for Membership Users and Roles based on the ASP.NET
                Membership system.</p>
            <div>
                <fieldset>
                    <legend>Manage Users</legend>
                    <p>@Html.ActionLink("Manage Users", "Membership", "ControlPanel", new { area = "Admin" }, new{@Class="btn btn-warning"})
                        | @Html.ActionLink("Create User", "MembershipCreateUser", "ControlPanel", new { area = "Admin" }, new{@Class="btn btn-success"})</p>
                    <table>
                        <tr>
                            <td>
                                Total Users:
                            </td>
                            <td>@Model.TotalUserCount
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Users Online:
                            </td>
                            <td>@Model.TotalUsersOnlineCount
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </div>
            <div class="widget-box">
                <fieldset>
                    <legend>Manage Roles</legend>
                    <p>@Html.ActionLink("Manage Roles", "RoleView", "ControlPanel", new { area = "Admin" }, new{@Class="btn btn-inverse"})</p>
                    <table>
                        <tr>
                            <td>
                                Total Roles:
                            </td>
                            <td>@Model.TotalRolesCount
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </div>
        </div>
    </div>
</div>

